\hypertarget{class_q_qt_server2_protocol}{}\section{Q\+Qt\+Server2\+Protocol Class Reference}
\label{class_q_qt_server2_protocol}\index{Q\+Qt\+Server2\+Protocol@{Q\+Qt\+Server2\+Protocol}}
Inheritance diagram for Q\+Qt\+Server2\+Protocol\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{class_q_qt_server2_protocol}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_qt_server2_protocol_a6e458fbdddcafaa00bd429dc88e195d4}\label{class_q_qt_server2_protocol_a6e458fbdddcafaa00bd429dc88e195d4}} 
void {\bfseries signal\+Sendto\+Logic\+Level\+Code} ()
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_qt_server2_protocol_a20ed5223b1d9e62461a14fd9e7064b43}\label{class_q_qt_server2_protocol_a20ed5223b1d9e62461a14fd9e7064b43}} 
{\bfseries Q\+Qt\+Server2\+Protocol} (Q\+Object $\ast$parent=nullptr)
\item 
\mbox{\Hypertarget{class_q_qt_server2_protocol_aa7e6a77b69046ff9bbd995c18bff1c20}\label{class_q_qt_server2_protocol_aa7e6a77b69046ff9bbd995c18bff1c20}} 
void {\bfseries recv\+Command1} (const \mbox{\hyperlink{class_q_qt_client2_message}{Q\+Qt\+Client2\+Message}} \&msg)
\item 
\mbox{\Hypertarget{class_q_qt_server2_protocol_a28e47b6b48a955eaea0cf4f8b05c1216}\label{class_q_qt_server2_protocol_a28e47b6b48a955eaea0cf4f8b05c1216}} 
void {\bfseries recv\+Command2} (const \mbox{\hyperlink{class_q_qt_client2_message}{Q\+Qt\+Client2\+Message}} \&msg)
\item 
\mbox{\Hypertarget{class_q_qt_server2_protocol_ab51580a0cd061458d5149991d9b6d0a7}\label{class_q_qt_server2_protocol_ab51580a0cd061458d5149991d9b6d0a7}} 
void {\bfseries send\+Command} ()
\item 
\mbox{\Hypertarget{class_q_qt_server2_protocol_ab16f85f73b7b40b93fd7e5a1f1142f88}\label{class_q_qt_server2_protocol_ab16f85f73b7b40b93fd7e5a1f1142f88}} 
void {\bfseries send\+Command1} ()
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual quint16 \mbox{\hyperlink{class_q_qt_server2_protocol_a2282032c0edf8f9d93471125de77a980}{minlength}} () override
\begin{DoxyCompactList}\small\item\em 最小包长 \end{DoxyCompactList}\item 
virtual quint16 \mbox{\hyperlink{class_q_qt_server2_protocol_a94d79a2cd8b22b353711fafe4dd8359b}{maxlength}} () override
\begin{DoxyCompactList}\small\item\em 最大包长 \end{DoxyCompactList}\item 
virtual quint16 \mbox{\hyperlink{class_q_qt_server2_protocol_a764cdc712de1104ae9400633eabd2f17}{splitter}} (const Q\+Byte\+Array \&l) override
\begin{DoxyCompactList}\small\item\em 语法解析器 从流中解析报文长度 /.../quint16 size/.../.../... \end{DoxyCompactList}\item 
virtual bool \mbox{\hyperlink{class_q_qt_server2_protocol_a166c5cf2d57448db3147f245bc591c79}{dispatcher}} (const Q\+Byte\+Array \&m) override
\begin{DoxyCompactList}\small\item\em 语义解析器 分发报文 /.../quint16 size/.../\+Q\+Byte\+Array data/.../ \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_q_qt_server2_protocol_a166c5cf2d57448db3147f245bc591c79}\label{class_q_qt_server2_protocol_a166c5cf2d57448db3147f245bc591c79}} 
\index{Q\+Qt\+Server2\+Protocol@{Q\+Qt\+Server2\+Protocol}!dispatcher@{dispatcher}}
\index{dispatcher@{dispatcher}!Q\+Qt\+Server2\+Protocol@{Q\+Qt\+Server2\+Protocol}}
\subsubsection{\texorpdfstring{dispatcher()}{dispatcher()}}
{\footnotesize\ttfamily virtual bool Q\+Qt\+Server2\+Protocol\+::dispatcher (\begin{DoxyParamCaption}\item[{const Q\+Byte\+Array \&}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}, {\ttfamily [protected]}, {\ttfamily [virtual]}}



语义解析器 分发报文 /.../quint16 size/.../\+Q\+Byte\+Array data/.../ 


\begin{DoxyParams}{Parameters}
{\em 数据包} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 no dispatched(others) 1 dispatched(own) 
\end{DoxyReturn}


Reimplemented from \mbox{\hyperlink{class_q_qt_protocol_a35a69c4b89c8cf7459038f40d75e0dc9}{Q\+Qt\+Protocol}}.

\mbox{\Hypertarget{class_q_qt_server2_protocol_a94d79a2cd8b22b353711fafe4dd8359b}\label{class_q_qt_server2_protocol_a94d79a2cd8b22b353711fafe4dd8359b}} 
\index{Q\+Qt\+Server2\+Protocol@{Q\+Qt\+Server2\+Protocol}!maxlength@{maxlength}}
\index{maxlength@{maxlength}!Q\+Qt\+Server2\+Protocol@{Q\+Qt\+Server2\+Protocol}}
\subsubsection{\texorpdfstring{maxlength()}{maxlength()}}
{\footnotesize\ttfamily virtual quint16 Q\+Qt\+Server2\+Protocol\+::maxlength (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}, {\ttfamily [protected]}, {\ttfamily [virtual]}}



最大包长 

\begin{DoxyReturn}{Returns}

\end{DoxyReturn}


Reimplemented from \mbox{\hyperlink{class_q_qt_protocol_af41bc3116abbbcfc9af45e151a253ff7}{Q\+Qt\+Protocol}}.

\mbox{\Hypertarget{class_q_qt_server2_protocol_a2282032c0edf8f9d93471125de77a980}\label{class_q_qt_server2_protocol_a2282032c0edf8f9d93471125de77a980}} 
\index{Q\+Qt\+Server2\+Protocol@{Q\+Qt\+Server2\+Protocol}!minlength@{minlength}}
\index{minlength@{minlength}!Q\+Qt\+Server2\+Protocol@{Q\+Qt\+Server2\+Protocol}}
\subsubsection{\texorpdfstring{minlength()}{minlength()}}
{\footnotesize\ttfamily virtual quint16 Q\+Qt\+Server2\+Protocol\+::minlength (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}, {\ttfamily [protected]}, {\ttfamily [virtual]}}



最小包长 

\begin{DoxyReturn}{Returns}

\end{DoxyReturn}


Reimplemented from \mbox{\hyperlink{class_q_qt_protocol_a2b00f53d3dd0eed817eeecff422891f3}{Q\+Qt\+Protocol}}.

\mbox{\Hypertarget{class_q_qt_server2_protocol_a764cdc712de1104ae9400633eabd2f17}\label{class_q_qt_server2_protocol_a764cdc712de1104ae9400633eabd2f17}} 
\index{Q\+Qt\+Server2\+Protocol@{Q\+Qt\+Server2\+Protocol}!splitter@{splitter}}
\index{splitter@{splitter}!Q\+Qt\+Server2\+Protocol@{Q\+Qt\+Server2\+Protocol}}
\subsubsection{\texorpdfstring{splitter()}{splitter()}}
{\footnotesize\ttfamily virtual quint16 Q\+Qt\+Server2\+Protocol\+::splitter (\begin{DoxyParamCaption}\item[{const Q\+Byte\+Array \&}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}, {\ttfamily [protected]}, {\ttfamily [virtual]}}



语法解析器 从流中解析报文长度 /.../quint16 size/.../.../... 


\begin{DoxyParams}{Parameters}
{\em 接收到的数据段} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
按照协议解析到的数据长度 可用，继续接收，丢弃，粘包。 
\end{DoxyReturn}


Reimplemented from \mbox{\hyperlink{class_q_qt_protocol_a00fd0c1ac23379ed3b9b25da9a34f39b}{Q\+Qt\+Protocol}}.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/examples/qqtserverexample/qqtserver2protocolmanager.\+h\end{DoxyCompactItemize}
